it is also useful for debugging statements that would generally be part of a larger batch of statements 它也可以用于調(diào)試通常是較大的批處理中的部分語(yǔ)句。
tracing also allows you to write debug statements directly in your code without having to remove them from your application when it is deployed to production servers 跟蹤還允許您在代碼中直接寫出調(diào)試語(yǔ)句,而不必在應(yīng)用程序部署到成品服務(wù)器后從應(yīng)用程序中移除這些語(yǔ)句。
tracing also enables you to write debug statements directly in your code without having to remove them from your application when it is deployed to production servers 使用跟蹤還可以直接在代碼中編寫調(diào)試語(yǔ)句,而不必在將應(yīng)用程序部署到成品服務(wù)器時(shí)從應(yīng)用程序中移除這些語(yǔ)句。
for example, you may want to write debugging statements that compare the speed of different approaches to the same programming task, or you may want to localize an application for multiple languages 例如,可能需要編寫調(diào)試語(yǔ)句來(lái)比較同一編程任務(wù)的不同方法的速度,或者可能需要本地化用于多種語(yǔ)言的應(yīng)用程序。